﻿using Kent.Boogaart.HelperTrinity.Extensions;

namespace Kent.Boogaart.Gauntlet.RegenerationPolicies
{
	/// <summary>
	/// An implementation of <see cref="IRegenerationPolicy"/> that always regenerates an item.
	/// </summary>
	public class ForcedRegenerationPolicy : IRegenerationPolicy
	{
		/// <summary>
		/// Always returns <see langword="true"/>.
		/// </summary>
		/// <param name="context">
		/// The context.
		/// </param>
		/// <returns>
		/// <see langword="true"/>.
		/// </returns>
		public bool ShouldRegenerate(Context context)
		{
			context.AssertNotNull("context");
			return true;
		}
	}
}